package com.pickup.utils;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class UserUtil<k, T> {
    private Map<k, T> userMap = new HashMap<>();

    public void setUserMap(k key, T value) {
        userMap.put(key, value);
    }

    public T getUserMap(k key) {
        return userMap.get(key);
    }

    public void delUserMap(k key) {
        userMap.remove(key);
    }

}
